/**
 *
 * @author lty
 */
public class Main {
    public static void main(String[] args) {
        Product laptop = new Product("Laptop", 1000);

        PromotionDecorator promotion = new BuyOneGetOneFree(laptop);
        System.out.println(promotion.getDescription());
        System.out.println("Original Price: " + laptop.getPrice());
        System.out.println("Discounted Price: " + promotion.getDiscountedPrice());

        PromotionDecorator promotion2 = new Discount20PercentOff(laptop);
        System.out.println(promotion2.getDescription());
        System.out.println("Original Price: " + laptop.getPrice());
        System.out.println("Discounted Price: " + promotion2.getDiscountedPrice());
    }
}
